package com.easy.dfc.mapper;


import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfc.entity.AskOther;
import com.easy.dfc.entity.ParaAskother;
import com.easy.dfc.entity.UserPara;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisMapper
public interface AskOtherMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AskOther record);

    int addQuestion(AskOther record);

    AskOther selectByPrimaryKey(Integer id);

    List<AskOther> getQuestionList(ParaAskother para);

    int updateByPrimaryKeySelective(AskOther record);

    int updateByPrimaryKeyWithBLOBs(AskOther record);

    int updateByPrimaryKey(AskOther record);



    //*************以下为全新定义
    List<Map<String,Object>> getNewList(@Param(value = "limitSize")Integer limitSize);

    List<AskOther> getFactoryAskOther(@Param(value = "limitSize")Integer limitSize);

    AskOther getQuestionById(@Param(value = "id")Integer id);

    List<AskOther> getMyQuestionList(ParaAskother para);

    List<AskOther> getMyAnswerQuestionList(ParaAskother para);
}